home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Utilities Experience
/
The Utilities Experience - Volume 1.iso
/
software
/
workbench+shell
/
q-z
/
wbstartup+v2.1
/
install
< prev
next >
Wrap
Text File
|
1995-09-24
|
3KB
|
97 lines
;
; $PROJECT: WBStartup+
;
; (C) Copyright 1995 John Hughes. All Rights Reserved.
;
(
(working "Installing WBStartup+")
(if (exists "SYS:WBStartup/WBStartup+")
( ; UPGRADE PREVIOUS VERSION
(message "A previous version of WBStartup+ has been found. I will upgrade your version.")
)
( ; INSTALL FOR THE FIRST TIME
; Moving the WBStartup files safely
(
(rename "SYS:WBStartup" "SYS:WBStartup.temp")
(makedir "SYS:WBStartup")
(rename "SYS:WBStartup.temp" "SYS:WBStartup/WBStartup (Enabled)")
)
; Creating Disabled Directory
(makedir "SYS:WBStartup/WBStartup (Disabled)")
)
)
; Copying icon
(copyfiles
(prompt "Copying the Enabled icon")
(source "icons/Enabled_Icon.info")
(dest "SYS:WBStartup")
(newname "WBStartup (Enabled).info")
)
; Copying icon
(copyfiles
(prompt "Copying the Disabled icon")
(source "icons/Disabled_Icon.info")
(dest "SYS:WBStartup")
(newname "WBStartup (Disabled).info")
)
; Copy WBStartup+
(if (< (/ (getversion) 65536) 39) ;if this is OS2.x
; Copy WBStartup+ for OS2.x
(copyfiles
(prompt "Copying the WBStartup+ Executable for OS2.x")
(help @copyfiles-help)
(source "OS2.x/WBStartup+")
(dest "SYS:WBStartup")
(infos)
)
(
; else, copy WBStartup+ and WBStartup+Prefs for OS3.x users
; Copy WBStartup+ for OS3.x
(copyfiles
(prompt "Copying the WBStartup+ Executable for OS3.x")
(help @copyfiles-help)
(source "OS3.x/WBStartup+")
(dest "SYS:WBStartup")
(infos)
)
; Copy WBStartup+Prefs for OS3.x users
(copyfiles
(prompt "Copying the WBStartup+Prefs Executable for OS3.x")
(help @copyfiles-help)
(source "OS3.x/WBStartup+Prefs")
(dest "SYS:Prefs")
(confirm)
(infos)
)
)
)
; install AmigaGuide file
(copyfiles
(prompt "Copying AmigaGuide file")
(help @copyfiles-help)
(source "WBStartup+.guide")
(dest "AmigaGuide:")
(confirm)
)
; install WBStart-Handler to L:
(copylib
(prompt "Copying AmigaGuide file")
(help @copylib-help)
(source "L/WBStart-Handler")
(dest "L:")
)
(set @default-dest "SYS:WBStartup")
)